
<!DOCTYPE HTML>
<html lang="zh-hans" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>硬核空间 · My Study Note</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content="yanglonglong">
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-code/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search-pro/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-chapter-fold/chapter-fold.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-toggle-chapters/toggle.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-flexible-alerts/style.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-theme-comscore/test.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="遇到的问题.html" />
    
    
    <link rel="prev" href="一些其他人写的博客.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="输入并搜索" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    
    
        
        <li>
            <a href="https://www.yangllong.top/" target="_blank" class="custom-link">My Blog</a>
        </li>
    
    

    
    <li class="divider"></li>
    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    Introduction
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../Linux相关/">
            
                <a href="../Linux相关/">
            
                    
                    Linux相关
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="../Linux相关/make工具的使用.html">
            
                <a href="../Linux相关/make工具的使用.html">
            
                    
                    Make工具的使用
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../springboot/">
            
                <a href="../springboot/">
            
                    
                    Springboot
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="../springboot/springboot一些遇到的问题.html">
            
                <a href="../springboot/springboot一些遇到的问题.html">
            
                    
                    Springboot一些遇到的问题
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../vue/">
            
                <a href="../vue/">
            
                    
                    Vue
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="../vue/vue+ssm跨域问题.html">
            
                <a href="../vue/vue+ssm跨域问题.html">
            
                    
                    Vue+Ssm跨域问题
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="../vue/vue-cli3.html">
            
                <a href="../vue/vue-cli3.html">
            
                    
                    Vue Cli3
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3" data-path="../vue/安装vue.html">
            
                <a href="../vue/安装vue.html">
            
                    
                    安装Vue
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="../其他/">
            
                <a href="../其他/">
            
                    
                    其他
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="../其他/分布式系统.html">
            
                <a href="../其他/分布式系统.html">
            
                    
                    分布式系统
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="../其他/图解http.html">
            
                <a href="../其他/图解http.html">
            
                    
                    图解Http
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.3" data-path="../其他/消息队列.html">
            
                <a href="../其他/消息队列.html">
            
                    
                    消息队列
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.4" data-path="../其他/爬虫.html">
            
                <a href="../其他/爬虫.html">
            
                    
                    爬虫
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="../刷题/">
            
                <a href="../刷题/">
            
                    
                    刷题
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1" data-path="../刷题/NOJ.html">
            
                <a href="../刷题/NOJ.html">
            
                    
                    NOJ
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2" data-path="../刷题/leetcode/">
            
                <a href="../刷题/leetcode/">
            
                    
                    Leetcode
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.3" data-path="../刷题/leetcode/107简单题.html">
            
                <a href="../刷题/leetcode/107简单题.html">
            
                    
                    107简单题
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.3.1" data-path="../刷题/leetcode/2两数相加.html">
            
                <a href="../刷题/leetcode/2两数相加.html">
            
                    
                    2两数相加
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.3.2" data-path="../刷题/leetcode/3无重复子串的最大长度.html">
            
                <a href="../刷题/leetcode/3无重复子串的最大长度.html">
            
                    
                    3无重复子串的最大长度
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6.4" data-path="../刷题/扇贝杯csdn.html">
            
                <a href="../刷题/扇贝杯csdn.html">
            
                    
                    扇贝杯Csdn
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.5" data-path="../刷题/排序算法.html">
            
                <a href="../刷题/排序算法.html">
            
                    
                    排序算法
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.6" data-path="../刷题/蓝桥杯.html">
            
                <a href="../刷题/蓝桥杯.html">
            
                    
                    蓝桥杯
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.7" data-path="../刷题/蓝桥杯热身赛.html">
            
                <a href="../刷题/蓝桥杯热身赛.html">
            
                    
                    蓝桥杯热身赛
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.8" data-path="../刷题/计算机等级考试(C语言">
            
                <span>
            
                    
                    计算机等级考试(C语言)
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="../博客/">
            
                <a href="../博客/">
            
                    
                    博客
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.1" data-path="../博客/next主题配置.html">
            
                <a href="../博客/next主题配置.html">
            
                    
                    Next主题配置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.2" data-path="../博客/一些问题的记录.html">
            
                <a href="../博客/一些问题的记录.html">
            
                    
                    一些问题的记录
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="./">
            
                <a href="./">
            
                    
                    学习Java
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.8.1" data-path="AQS.html">
            
                <a href="AQS.html">
            
                    
                    AQS
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.2" data-path="HashMap的简单实现.html">
            
                <a href="HashMap的简单实现.html">
            
                    
                    HashMap的简单实现
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.3" data-path="JavaByteCode.html">
            
                <a href="JavaByteCode.html">
            
                    
                    JavaByteCode
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.4" data-path="Java基础.html">
            
                <a href="Java基础.html">
            
                    
                    Java基础
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.5" data-path="Java多线程.html">
            
                <a href="Java多线程.html">
            
                    
                    Java多线程
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.6" data-path="Java多线程并发.html">
            
                <a href="Java多线程并发.html">
            
                    
                    Java多线程并发
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.7" data-path="Java爬虫.html">
            
                <a href="Java爬虫.html">
            
                    
                    Java爬虫
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.8" data-path="Java集合.html">
            
                <a href="Java集合.html">
            
                    
                    Java集合
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.9" data-path="java常用类.html">
            
                <a href="java常用类.html">
            
                    
                    Java常用类
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.10" data-path="jvm.html">
            
                <a href="jvm.html">
            
                    
                    Jvm
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.11" data-path="noifelse.html">
            
                <a href="noifelse.html">
            
                    
                    Noifelse
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.12" data-path="socket.html">
            
                <a href="socket.html">
            
                    
                    Socket
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.13" data-path="一些Java方法.html">
            
                <a href="一些Java方法.html">
            
                    
                    一些Java方法
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.14" data-path="一些其他人写的博客.html">
            
                <a href="一些其他人写的博客.html">
            
                    
                    一些其他人写的博客
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.8.15" data-path="硬核空间.html">
            
                <a href="硬核空间.html">
            
                    
                    硬核空间
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.16" data-path="遇到的问题.html">
            
                <a href="遇到的问题.html">
            
                    
                    遇到的问题
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.17" data-path="阻塞队列.html">
            
                <a href="阻塞队列.html">
            
                    
                    阻塞队列
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.9" data-path="../安卓开发/">
            
                <a href="../安卓开发/">
            
                    
                    安卓开发
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.9.1" data-path="../安卓开发/First App.html">
            
                <a href="../安卓开发/First App.html">
            
                    
                    First App
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.2" data-path="../安卓开发/problems.html">
            
                <a href="../安卓开发/problems.html">
            
                    
                    Problems
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.10" data-path="../工具/">
            
                <a href="../工具/">
            
                    
                    工具
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.10.1" data-path="../工具/IDEA.html">
            
                <a href="../工具/IDEA.html">
            
                    
                    IDEA
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.2" data-path="../工具/docker.html">
            
                <a href="../工具/docker.html">
            
                    
                    Docker
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.3" data-path="../工具/github.html">
            
                <a href="../工具/github.html">
            
                    
                    Github
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.11" data-path="../数据库/">
            
                <a href="../数据库/">
            
                    
                    数据库
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.11.1" data-path="../数据库/MVCC.html">
            
                <a href="../数据库/MVCC.html">
            
                    
                    MVCC
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.2" data-path="../数据库/MySQL.html">
            
                <a href="../数据库/MySQL.html">
            
                    
                    MySQL
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.3" data-path="../数据库/Redis.html">
            
                <a href="../数据库/Redis.html">
            
                    
                    Redis
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.12" data-path="../数据结构知识/">
            
                <a href="../数据结构知识/">
            
                    
                    数据结构知识
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.12.1" data-path="../数据结构知识/大话数据结构笔记1.html">
            
                <a href="../数据结构知识/大话数据结构笔记1.html">
            
                    
                    大话数据结构笔记1
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.2" data-path="../数据结构知识/大话数据结构笔记2.html">
            
                <a href="../数据结构知识/大话数据结构笔记2.html">
            
                    
                    大话数据结构笔记2
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.13" data-path="../面试笔试/">
            
                <a href="../面试笔试/">
            
                    
                    面试笔试
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.13.1" data-path="../面试笔试/字节跳动5月11日笔试.html">
            
                <a href="../面试笔试/字节跳动5月11日笔试.html">
            
                    
                    字节跳动5月11日笔试
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.2" data-path="../面试笔试/阿里3月23日笔试.html">
            
                <a href="../面试笔试/阿里3月23日笔试.html">
            
                    
                    阿里3月23日笔试
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.3" data-path="../面试笔试/面试突击.html">
            
                <a href="../面试笔试/面试突击.html">
            
                    
                    面试突击
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            本书使用 GitBook 发布
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >硬核空间</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="&#x4E00;&#x6B21;&#x7ED9;&#x963F;&#x91CC;&#x5DF4;&#x5DF4;fastjson&#x4FEE;bug&#x7684;&#x5B66;&#x4E60;&#x7ECF;&#x5386;">&#x4E00;&#x6B21;&#x7ED9;&#x963F;&#x91CC;&#x5DF4;&#x5DF4;fastjson&#x4FEE;bug&#x7684;&#x5B66;&#x4E60;&#x7ECF;&#x5386;</h1>
<blockquote>
<p>fastjson&#x4E5F;&#x662F;&#x6211;&#x6700;&#x8FD1;&#x6709;&#x7528;&#x5230;&#x7684;&#x4E00;&#x4E2A;&#x5F00;&#x6E90;&#x5E93;</p>
<p>&#x8FD9;&#x662F;&#x6211;&#x5728;B&#x7AD9;&#x5B66;&#x4E60;&#x5230;&#x7684;&#xFF0C;&#x4E0B;&#x9762;&#x9644;&#x4E0A;&#x89C6;&#x9891;&#x94FE;&#x63A5;</p>
</blockquote>
<p><a href="https://www.bilibili.com/video/av77302131" target="_blank">&#x89C6;&#x9891;&#x94FE;&#x63A5;</a></p>
<h4 id="&#x627E;bug&#x6807;&#x51C6;">&#x627E;bug&#x6807;&#x51C6;</h4>
<ol>
<li>bug&#x80FD;&#x590D;&#x73B0;</li>
<li>bug&#x6BD4;&#x8F83;&#x91CD;&#x8981;&#xFF0C;&#x4E5F;&#x5C31;&#x662F;&#x8BF4;&#x5F88;&#x591A;&#x4EBA;&#x90FD;&#x51FA;&#x73B0;&#x8FC7;&#x8FD9;&#x4E2A;bug</li>
</ol>
<h4 id="&#x627E;&#x5230;bug">&#x627E;&#x5230;bug</h4>
<p>&#x627E;&#x5230;&#x7684;bug&#xFF1A;fastjson&#x65E0;&#x6CD5;&#x53CD;&#x5E8F;&#x5217;&#x5316;&#x8D85;&#x51FA;&#x67D0;&#x79CD;&#x9650;&#x5236;&#x7684;&#x7C7B;#2779  &#x4E0B;&#x9762;&#x6709;bug&#x94FE;&#x63A5;</p>
<p><a href="https://github.com/alibaba/fastjson/issues/2779" target="_blank">bug&#x94FE;&#x63A5;</a></p>
<p>&#x9996;&#x5148;&#x4F7F;&#x7528;git clone fastjson&#x9879;&#x76EE;&#xFF0C;&#x5728;idea&#x4E2D;&#x6253;&#x5F00;</p>
<p>&#x8FDB;&#x5165;test&#x5305;&#xFF0C;&#x53D1;&#x73B0;java.alibaba.fastjson.deserializer&#x5305;&#x4E0B;&#x5DF2;&#x7ECF;&#x6709;issue2779&#x7684;&#x6D4B;&#x8BD5;&#x7C7B;&#x4E86;</p>
<p>&#x5F53;&#x7136;&#xFF0C;&#x8FD9;&#x662F;up&#x4E3B;&#x5DF2;&#x7ECF;&#x4FEE;&#x590D;&#x7684;&#x7248;&#x672C;&#x5566;&#xFF0C;&#x6211;&#x4EEC;&#x8FD0;&#x884C;&#x53D1;&#x73B0;&#x5E76;&#x6CA1;&#x6709;&#x62A5;&#x9519;&#xFF0C;&#x54C8;&#x54C8;&#x54C8;</p>
<h4 id="&#x590D;&#x73B0;bug">&#x590D;&#x73B0;bug</h4>
<p>&#x6240;&#x4EE5;&#x6211;&#x4EEC;&#x4F7F;&#x7528;git&#x56DE;&#x9000;&#x5230;up&#x4E3B;&#x8FD8;&#x6CA1;&#x4FEE;&#x590D;&#x6210;&#x529F;&#x7684;&#x7248;&#x672C;</p>
<p><img src="https://gitee.com/yonglone/PicHub/raw/master/20200627123322.png" alt="image-20191211113613380"></p>
<p>&#x4ED6;&#x662F;11.4&#x4FEE;&#x590D;&#x7684;&#xFF0C;&#x6211;&#x4EEC;&#x56DE;&#x9000;&#x5230;&#x4E0B;&#x9762;&#x7684;10.29</p>
<p>&#x5728;&#x6B64;&#x4E4B;&#x524D;&#xFF0C;&#x6211;&#x4EEC;&#x53EF;&#x4EE5;&#x5148;&#x628A;issue2779&#x5305;&#x91CC;&#x9762;&#x7684;&#x4E24;&#x4E2A;&#x6587;&#x4EF6;&#x5728;&#x672C;&#x5730;&#x8FDB;&#x884C;&#x4FEE;&#x6539;&#x4E00;&#x4E0B;&#xFF08;&#x6309;&#x56DE;&#x8F66;&#x589E;&#x52A0;&#x4E00;&#x884C;&#x5C31;&#x53EF;&#x4EE5;&#xFF09;&#xFF0C;&#x4EE5;&#x514D;&#x56DE;&#x9000;&#x7684;&#x65F6;&#x5019;&#x8FD9;&#x4E2A;&#x5305;&#x76F4;&#x63A5;&#x6D88;&#x5931;&#x4E86;</p>
<p><img src="https://gitee.com/yonglone/PicHub/raw/master/20200627133701.png" alt=""></p>
<p>&#x4E0A;&#x56FE;&#x9009;&#x9519;&#x4E86;&#xFF0C;&#x5E94;&#x8BE5;&#x9009;&#x62E9;Keep&#x2192;Reset</p>
<p>&#x770B;&#x540E;&#x9762;&#x7684;&#x4FE1;&#x606F;&#x5C31;&#x53EF;&#x4EE5;&#x77E5;&#x9053;&#xFF0C;&#x9009;&#x62E9;keep&#x672C;&#x5730;&#x4FEE;&#x6539;&#x7684;&#x6587;&#x4EF6;&#xFF08;&#x4E5F;&#x5C31;&#x662F;&#x521A;&#x624D;&#x4FEE;&#x6539;&#x7684;issue2779&#x5305;&#x5185;&#x7684;&#x4E24;&#x4E2A;&#x6587;&#x4EF6;&#xFF09;&#x4F1A;&#x4FDD;&#x5B58;&#x4E0B;&#x6765;&#x4E86;&#xFF0C;&#x5982;&#x679C;&#x9009;hard&#x5C31;&#x76F4;&#x63A5;&#x66B4;&#x529B;&#x5220;&#x9664;&#x5566;</p>
<p>&#x4E4B;&#x540E;&#x8FD0;&#x884C;issue2779&#x6D4B;&#x8BD5;&#x7C7B;&#xFF0C;&#x7EC8;&#x4E8E;&#x51FA;&#x73B0;&#x4E86;&#x62A5;&#x9519;&#x4FE1;&#x606F;</p>
<p><img src="https://gitee.com/yonglone/PicHub/raw/master/20200627123844.png" alt="image-20191211115200184"></p>
<p>&#x7136;&#x540E;&#x627E;&#x8FD9;&#x79CD;jdk&#x548C;&#x8FD9;&#x4E2A;&#x9879;&#x76EE;&#x62A5;&#x9519;&#x4FE1;&#x606F;&#x7684;&#x4EA4;&#x754C;&#x5904;</p>
<p><img src="https://gitee.com/yonglone/PicHub/raw/master/20200627134013.png" alt="image-20191211115622717"></p>
<p>&#x4E5F;&#x5C31;&#x662F;com.alibaba.fastjson.parser.deserializer&#x5305;&#x4E0B;&#x9762;&#x7684;ASMDeserializerFactory&#x7C7B;&#x7684;createJavaBeanDeserializer&#x65B9;&#x6CD5;&#x6709;&#x95EE;&#x9898;</p>
<h4 id="&#x67E5;&#x627E;&#x95EE;&#x9898;">&#x67E5;&#x627E;&#x95EE;&#x9898;</h4>
<p>&#x6211;&#x4EEC;&#x5B9A;&#x4F4D;&#x5230;&#x8FD9;&#x4E00;&#x884C;&#xFF0C;&#x8FDB;&#x884C;&#x65AD;&#x70B9;&#x8C03;&#x8BD5;</p>
<p><img src="https://gitee.com/yonglone/PicHub/raw/master/duandiantiaoshi.png" alt="image-20191211115948426"></p>
<p>&#x67E5;&#x770B;code&#x53D8;&#x91CF;</p>
<p><img src="https://gitee.com/yonglone/PicHub/raw/master/code.png" alt="image-20191202230532915"></p>
<blockquote>
<p>code&#x662F;&#x4E00;&#x4E2A;Java&#x5B57;&#x8282;&#x7801; </p>
<p>&#x6240;&#x6709;&#x7684;.class &#x6587;&#x4EF6;&#x7684;&#x524D;&#x56DB;&#x4E2A;&#x5B57;&#x8282;&#x90FD;&#x662F;&#x9B54;&#x6570;&#xFF0C;&#x9B54;&#x6570;&#x7684;&#x56FA;&#x5B9A;&#x503C;&#x4E3A;&#xFF1A;0xCAFEBABE</p>
<p>Java&#x6709;&#x5496;&#x5561;&#x7684;&#x610F;&#x601D;&#xFF0C;&#x7A0B;&#x5E8F;&#x5458;&#x7684;&#x6D6A;&#x6F2B;~</p>
<p>&#x9B54;&#x6570;&#x7684;&#x56FA;&#x5B9A;&#x503C;&#x662F; Java &#x4E4B;&#x7236; James Gosling &#x5236;&#x5B9A;&#x7684;&#xFF0C;&#x4E3A; CafeBabe&#xFF08;&#x5496;&#x5561;&#x5B9D;&#x8D1D;&#xFF09;&#xFF0C;&#x800C; Java &#x7684;&#x56FE;&#x6807;&#x4E3A;&#x4E00;&#x676F;&#x5496;&#x5561;</p>
</blockquote>
<h5 id="evaluate-expression&#x8868;&#x8FBE;&#x5F0F;&#x6C42;&#x503C;">Evaluate Expression&#x8868;&#x8FBE;&#x5F0F;&#x6C42;&#x503C;</h5>
<p>&#x5728;code&#x5904;&#x53F3;&#x952E;&#x6709;&#x4E2A;Evaluate Expression&#xFF0C;&#x8868;&#x8FBE;&#x5F0F;&#x6C42;&#x503C;</p>
<p><img src="https://gitee.com/yonglone/PicHub/raw/master/evaluateexpression.png" alt="image-20191202230841162"></p>
<p>&#x5C06;&#x5B57;&#x8282;&#x7801;&#x8F93;&#x51FA;&#x5230;&#x6587;&#x4EF6;bad.class</p>
<p><img src="https://gitee.com/yonglone/PicHub/raw/master/evaluate-writefile.png" alt="image-20191202231109760"></p>
<p>&#x53EF;&#x4EE5;&#x770B;&#x5230;&#x9879;&#x76EE;&#x8FD9;&#x91CC;&#x51FA;&#x73B0;&#x4E86;bad.class&#x6587;&#x4EF6;</p>
<p><img src="https://gitee.com/yonglone/PicHub/raw/master/badclassloca.png" alt="image-20191211120602606"></p>
<p>&#x5F88;&#x5947;&#x602A;&#xFF0C;&#x6211;&#x8FD9;&#x91CC;idea&#x5C45;&#x7136;&#x8FD8;&#x662F;&#x53EF;&#x4EE5;&#x53CD;&#x7F16;&#x8BD1;&#x6210;&#x529F;</p>
<p><img src="https://gitee.com/yonglone/PicHub/raw/master/fanbianyibad.png" alt="image-20191211120750776"></p>
<p>&#x5982;&#x679C;&#x662F;&#x574F;&#x7684;&#xFF0C;idea&#x65E0;&#x6CD5;&#x53CD;&#x7F16;&#x8BD1;&#xFF0C;&#x4F1A;&#x51FA;&#x73B0;&#x4E0B;&#x9762;&#x7684;&#x7ED3;&#x679C;&#xFF0C;&#x89C6;&#x9891;&#x4E2D;&#x662F;&#x8FD9;&#x6837;&#x7684;</p>
<p><img src="https://gitee.com/yonglone/PicHub/raw/master/badclass.png" alt="image-20191202234253689"></p>
<p>&#x6211;&#x4EEC;&#x53EF;&#x4EE5;&#x7528;&#x4E00;&#x4E9B;&#x5DE5;&#x5177;&#x6765;&#x67E5;&#x770B;&#x8FD9;&#x4E2A;&#x574F;&#x7684;&#x5B57;&#x8282;&#x7801;&#x6587;&#x4EF6;</p>
<p>&#x4F8B;&#x5982;&#x4E0B;&#x9762;&#x7684;&#x547D;&#x4EE4;</p>
<pre><code class="lang-shell">javap -v bad #Java&#x81EA;&#x5E26;&#x7684;&#x53CD;&#x7F16;&#x8BD1;&#x5DE5;&#x5177;
</code></pre>
<p>&#x4F46;&#x662F;&#x592A;&#x957F;&#x4E86;&#xFF0C;&#x5728;&#x547D;&#x4EE4;&#x884C;&#x770B;&#x4E5F;&#x4E0D;&#x592A;&#x65B9;&#x4FBF;</p>
<p>&#x6211;&#x4EEC;&#x4F7F;&#x7528;&#x4E0B;&#x9762;&#x7684;&#x5DE5;&#x5177;classpy</p>
<h5 id="&#x53CD;&#x7F16;&#x8BD1;&#x5DE5;&#x5177;classpy">&#x53CD;&#x7F16;&#x8BD1;&#x5DE5;&#x5177;classpy</h5>
<p>&#x5728;GitHub&#x641C;&#x7D22;classpy&#xFF0C;clone&#x4E0B;&#x6765;&#xFF0C;&#x6309;&#x7167;readme&#x5B89;&#x88C5;&#x8FD0;&#x884C;</p>
<p>&#x6211;&#x662F;Windows&#x7CFB;&#x7EDF;&#xFF0C;&#x9996;&#x5148;&#x8FDB;&#x5165;classpy&#x76EE;&#x5F55;&#x4E0B;&#xFF0C;&#x70B9;&#x51FB;&#x8FD0;&#x884C;&#x4E86;gradlew.bat&#x6587;&#x4EF6;&#xFF0C;&#x7136;&#x540E;&#x5728;&#x5F53;&#x524D;&#x76EE;&#x5F55;&#x4E0B;&#x7684;&#x547D;&#x4EE4;&#x884C;&#x8F93;&#x5165;&#x4E0B;&#x9762;&#x7684;&#x547D;&#x4EE4;&#x542F;&#x52A8;&#x8FD9;&#x4E2A;&#x5DE5;&#x5177;</p>
<pre><code class="lang-shell">gradle run
</code></pre>
<p>&#x89C6;&#x9891;&#x4E2D;&#x4ED6;&#x7684;Java&#x7248;&#x672C;&#x4E3A;11&#xFF0C;&#x542F;&#x52A8;&#x5931;&#x8D25;&#x4E86;</p>
<p>&#x4F7F;&#x7528;&#x4E86;jenv&#x547D;&#x4EE4;&#x5207;&#x6362;&#x5230;jdk1.8&#xFF0C;&#x6211;&#x4F7F;&#x7528;&#x7684;&#x5C31;&#x662F;jdk1.8  &#x5FFD;&#x7565;&#x8FD9;&#x4E2A;&#x6B65;&#x9AA4;</p>
<pre><code class="lang-shell">jenv shell 1.8  #&#x9700;&#x8981;&#x5B89;&#x88C5;jenv
</code></pre>
<p>&#x4E0B;&#x9762;&#x662F;&#x6253;&#x5F00;&#x7684;&#x5B57;&#x8282;&#x7801;&#x6587;&#x4EF6;</p>
<p><img src="https://gitee.com/yonglone/PicHub/raw/master/classpybadclass.png" alt="image-20191203001137874"></p>
<p>&#x7531;&#x4E8E;&#x6211;&#x4EEC;&#x53EA;&#x6709;Illegal target of jump or branch&#x8FD9;&#x4E2A;&#x62A5;&#x9519;&#x4FE1;&#x606F;&#xFF0C;&#x8FD9;&#x4E00;&#x4E2A;&#x7EBF;&#x7D22;</p>
<blockquote>
<p>&#x4E0B;&#x9762;buildjdk&#x64CD;&#x4F5C;&#x592A;&#x786C;&#x6838;&#xFF0C;&#x6211;&#x6CA1;&#x6709;&#x8DDF;&#x7740;&#x505A;&#x1F602;  &#x611F;&#x5174;&#x8DA3;&#x53EF;&#x4EE5;&#x53BB;&#x89C6;&#x9891;16:45&#x5904;&#x770B;&#x770B;&#x1F44D;</p>
</blockquote>
<p>&#x5230;jdk&#x4E2D;&#x5BFB;&#x627E;&#x6B64;&#x62A5;&#x9519;&#x4FE1;&#x606F;</p>
<p>clone openjdk&#x4E0B;&#x7684;jdk&#x9879;&#x76EE;&#xFF0C;&#x5168;&#x5C40;&#x641C;&#x7D22;&#x6B64;&#x62A5;&#x9519;&#x4FE1;&#x606F;Illegal target of jump or branch </p>
<p><img src="https://gitee.com/yonglone/PicHub/raw/master/errorInfoLocaInJDK.png" alt="Illegal target of jump or branch &#x62A5;&#x9519;&#x4FE1;&#x606F;"></p>
<p> &#x7136;&#x540E;&#x4ED6;&#x4FEE;&#x6539;&#x4E86;jdk&#xFF0C;&#x4E0A;&#x9762;&#x56FE;&#x7247;&#x4E2D;&#x7684;&#x4EE3;&#x7801;&#x5C31;&#x662F;&#x4FEE;&#x6539;&#x540E;&#x7684;jdk&#xFF0C;&#x539F;&#x6765;&#x53EA;&#x6709;&#x62A5;&#x9519;&#x4FE1;&#x606F;&#xFF0C;&#x4ED6;&#x81EA;&#x5DF1;&#x52A0;&#x4E0A;&#x4E86;jump&#x548C;target&#xFF0C;&#x53EF;&#x4EE5;&#x63D0;&#x793A;&#x9519;&#x8BEF;&#x7684;&#x4F4D;&#x7F6E;&#xFF0C;&#x5982;&#x4E0B;&#x56FE;</p>
<p><img src="https://gitee.com/yonglone/PicHub/raw/master/changeJDK.png" alt="image-20191211131058621"></p>
<p>&#x7136;&#x540E;&#x4ED6;&#x81EA;&#x5DF1;build&#x4E86;&#x4E00;&#x4E2A;jdk&#x1F44D;</p>
<p>&#x4F7F;&#x7528;&#x81EA;&#x5DF1;build&#x7684;jdk&#x91CD;&#x65B0;&#x8FD0;&#x884C;issue2779&#xFF0C;&#x4E0B;&#x9762;&#x662F;&#x62A5;&#x9519;&#x4FE1;&#x606F;&#xFF0C;deserialze&#x65B9;&#x6CD5;&#x7B2C;50&#x4F4D;&#x7F6E;</p>
<p><img src="https://gitee.com/yonglone/PicHub/raw/master/errorInJDK.png" alt="image-20191211131737775"></p>
<p>&#x5728;&#x521A;&#x624D;classpy&#x6253;&#x5F00;&#x7684;bad.class&#x4E2D;&#x627E;&#x5230;deserialze&#x65B9;&#x6CD5;  &#x5B57;&#x8282;&#x7801;  &#x7B2C;50&#x4E2A;&#x4F4D;&#x7F6E;&#x662F;&#x8FD9;&#x6837;&#x7684;</p>
<p><img src="https://gitee.com/yonglone/PicHub/raw/master/bytecode_50.png" alt="image-20191211124952950"></p>
<pre><code>ifeq -32405
</code></pre><p>&#x53EF;&#x80FD;&#x662F;&#x6EA2;&#x51FA;</p>
<p>&#x67E5;&#x770B;ifeq&#x7684;&#x542B;&#x4E49;&#xFF0C;&#x5F53;&#x6808;&#x9876;int&#x578B;&#x6570;&#x503C;&#x7B49;&#x4E8E;0&#x65F6;&#x8DF3;&#x8F6C;</p>
<p><img src="https://gitee.com/yonglone/PicHub/raw/master/ifeq.png" alt="image-20191211132443946"></p>
<p>fastjson&#x6709;&#x4E2A;&#x5730;&#x65B9;&#x4EE3;&#x7801;&#x6CA1;&#x6709;&#x5199;&#x597D;&#xFF0C;&#x751F;&#x6210;&#x4E86;&#x4E00;&#x4E2A;&#x4F1A;&#x6EA2;&#x51FA;&#x7684;&#x8DF3;&#x8F6C;&#x6307;&#x4EE4;</p>
<p>&#x7136;&#x540E;&#x6839;&#x636E;&#x4E0A;&#x4E0B;&#x6587;(50&#x4F4D;&#x7F6E;&#x4E0A;&#x9762;&#x6709;&#x4E2A;isEnabled)&#xFF0C;&#x5728;&#x6E90;&#x7801;&#x4E2D;&#x627E;&#x5230;&#x76F8;&#x5E94;&#x4F4D;&#x7F6E;</p>
<p><img src="https://gitee.com/yonglone/PicHub/raw/master/errorloca.png" alt="image-20191211125555537"></p>
<p>&#x8FDB;&#x5165;visitJumpInsn&#x65B9;&#x6CD5;&#xFF0C;&#x8FD9;&#x5176;&#x5B9E;&#x662F;asm&#x4EE3;&#x7801;&#xFF08;&#x64CD;&#x4F5C;&#x5B57;&#x8282;&#x7801;&#x7684;&#x5E93;&#xFF09;</p>
<p><img src="https://gitee.com/yonglone/PicHub/raw/master/asmInterf.png" alt="image-20191211133402454"></p>
<p>&#x6309;crtl+alt+B&#x53EF;&#x4EE5;&#x8FDB;&#x5165;&#x63A5;&#x53E3;&#x7684;&#x5B9E;&#x73B0;&#x7C7B;</p>
<p><img src="https://gitee.com/yonglone/PicHub/raw/master/asmImpl.png" alt="image-20191211133434998"></p>
<h4 id="&#x89E3;&#x51B3;&#x95EE;&#x9898;">&#x89E3;&#x51B3;&#x95EE;&#x9898;</h4>
<p>&#x7136;&#x540E;&#x4ED6;&#x89C9;&#x5F97;&#xFF0C;&#x53EF;&#x80FD;&#x662F;fastjson&#x91CC;&#x9762;&#x7684;asm&#x4EE3;&#x7801;&#x7248;&#x672C;&#x592A;&#x8001;&#x4E86;&#xFF0C;&#x60F3;&#x628A;&#x6700;&#x65B0;&#x7684;&#x5408;&#x5E76;&#x8FDB;&#x6765;&#xFF0C;&#x4F46;&#x662F;&#x7531;&#x4E8E;&#x7248;&#x672C;&#x76F8;&#x5DEE;7&#x5E74;&#xFF0C;&#x5931;&#x8D25;&#x4E86;</p>
<p>&#x5BF9;&#x6BD4;&#x6700;&#x65B0;&#x7684;asm&#x4EE3;&#x7801;&#x4E0E;fastjson&#x91CC;&#x9762;&#x7684;&#x4EE3;&#x7801;</p>
<p><img src="https://gitee.com/yonglone/PicHub/raw/master/changeCode.png" alt="image-20191211133753383"></p>
<p>&#x8FD9;&#x91CC;&#x975E;&#x5E38;&#x91CD;&#x8981;&#xFF0C;&#x5982;&#x679C;&#x8D8A;&#x754C;&#xFF0C;&#x53EF;&#x4EE5;&#x5C06;IFxxx&#x6539;&#x4E3A;IFNOTxxx  GOTO_W</p>
<p><img src="https://gitee.com/yonglone/PicHub/raw/master/annotation.png" alt="image-20191211175328263"></p>
<p>&#x6700;&#x540E;&#x89E3;&#x51B3;&#x7684;&#x95EE;&#x9898;&#xFF1A;&#x6309;&#x7167;asm&#x7684;&#x8981;&#x6C42;&#xFF0C;&#x628A;&#x4E00;&#x4E2A;&#x4E0D;&#x652F;&#x6301;&#x957F;&#x8DF3;&#x8F6C;&#x7684;ifeq&#x8F6C;&#x53D8;&#x6210;ifnq&#x52A0;goto_w&#x957F;&#x8DF3;&#x8F6C;&#x8BED;&#x53E5;</p>
<p><a href="https://github.com/alibaba/fastjson/pull/2858" target="_blank">pr&#x94FE;&#x63A5;</a></p>
<p>&#x4FEE;&#x5B8C;bug&#x4E00;&#x5B9A;&#x8981;&#x8865;&#x4E00;&#x4E2A;&#x6D4B;&#x8BD5;&#x7528;&#x4F8B;&#xFF01;</p>
<h4 id="&#x89C6;&#x9891;&#x4E2D;&#x63D0;&#x5230;&#x5176;&#x4ED6;&#x5185;&#x5BB9;">&#x89C6;&#x9891;&#x4E2D;&#x63D0;&#x5230;&#x5176;&#x4ED6;&#x5185;&#x5BB9;</h4>
<h5 id="&#x5B57;&#x8282;&#x7801;&#x7684;&#x89E3;&#x91CA;&#xFF1A;">&#x5B57;&#x8282;&#x7801;&#x7684;&#x89E3;&#x91CA;&#xFF1A;</h5>
<p>&#x7B80;&#x5355;&#x5199;&#x4E00;&#x4E2A;&#x6D4B;&#x8BD5;&#x4E00;&#x4E0B;</p>
<pre><code class="lang-Java"><span class="hljs-keyword">public</span> <span class="hljs-class"><span class="hljs-keyword">class</span> <span class="hljs-title">AbcDTO</span> </span>{
    <span class="hljs-function"><span class="hljs-keyword">public</span> <span class="hljs-keyword">static</span> <span class="hljs-keyword">void</span> <span class="hljs-title">main</span><span class="hljs-params">(String [] args)</span> </span>{
        <span class="hljs-keyword">int</span> i =<span class="hljs-number">1</span>,j=<span class="hljs-number">2</span>;
        <span class="hljs-keyword">if</span> (i+j==<span class="hljs-number">3</span>){
            System.out.println(<span class="hljs-string">&quot;3&quot;</span>);
        }<span class="hljs-keyword">else</span> {
            System.out.println(<span class="hljs-string">&quot;0&quot;</span>);
        }
    }
</code></pre>
<p>&#x7F16;&#x8BD1;&#x8FD0;&#x884C;&#xFF0C;&#x4F7F;&#x7528;ASM Bytecode Viewer&#x63D2;&#x4EF6;&#x67E5;&#x770B;&#x5B57;&#x8282;&#x7801;</p>
<h5 id="asm-bytecode-viewer&#x63D2;&#x4EF6;">ASM Bytecode Viewer&#x63D2;&#x4EF6;</h5>
<p>&#x53EF;&#x5728;idea Plugins&#x4E2D;&#x5B89;&#x88C5;</p>
<p><img src="https://gitee.com/yonglone/PicHub/raw/master/asmplugin.png" alt="image-20191208144452139"></p>
<p>&#x627E;&#x5230;main&#x65B9;&#x6CD5;</p>
<p><img src="https://gitee.com/yonglone/PicHub/raw/master/JavaBytecode.png" alt="image-20191208144825554"></p>
<p>&#x6BCF;&#x4E2A;&#x65B9;&#x6CD5;&#x91CC;&#x9762;&#x6709;&#x4E2A;&#x64CD;&#x4F5C;&#x6570;&#x6808;&#xFF0C;jvm&#x6267;&#x884C;&#x65B9;&#x6CD5;&#x65F6;&#x4F1A;&#x4E0D;&#x505C;&#x7684;&#x6267;&#x884C;&#x8FD9;&#x4E9B;&#x6307;&#x4EE4;</p>
<h5 id="&#x4FEE;bug&#x8981;&#x638C;&#x63E1;&#x7684;&#x4E1C;&#x897F;">&#x4FEE;bug&#x8981;&#x638C;&#x63E1;&#x7684;&#x4E1C;&#x897F;</h5>
<ol>
<li>&#x80FD;&#x4ECE;&#x7528;&#x6237;&#x63D0;&#x4F9B;&#x7684;bug&#xFF0C;&#x91CD;&#x73B0;bug</li>
<li>&#x770B;&#x6808;&#x8F68;&#x8FF9;&#xFF0C;&#x5B57;&#x8282;&#x7801;&#x95EE;&#x9898;&#x51FA;&#x5728;&#x54EA;&#x91CC;</li>
<li>&#x5B66;&#x4E60;&#x4F7F;&#x7528;&#x53CD;&#x7F16;&#x8BD1;&#x5DE5;&#x5177;</li>
<li>&#x9519;&#x8BEF;&#x4FE1;&#x606F;&#x5230;&#x5E95;&#x662F;&#x4EC0;&#x4E48;&#x95EE;&#x9898;&#xFF0C;&#x8BFB;jdk&#x6E90;&#x7801;&#xFF08;&#x751A;&#x81F3;&#x9700;&#x8981;build jdk&#xFF09;</li>
</ol>
<p>R&#x5927;&#x7684;&#x4E66;&#x5355;RednaxelaFX</p>
<p>&#x4E0B;&#xB7;</p>
<h5 id="mybatis&#x9700;&#x8981;&#x638C;&#x63E1;&#x7684;&#x5185;&#x5BB9;">mybatis&#x9700;&#x8981;&#x638C;&#x63E1;&#x7684;&#x5185;&#x5BB9;</h5>
<ol>
<li><h1 id="">{} ${}</h1>
</li>
<li>&#x7F13;&#x5B58;&#x662F;&#x548B;&#x5B9E;&#x73B0;&#x7684;&#xFF1F;</li>
<li>Executor&#x662F;&#x5565;&#xFF1F;</li>
<li>&#x5206;&#x9875;&#x662F;&#x600E;&#x4E48;&#x5B9E;&#x73B0;&#x7684;&#xFF1F;</li>
</ol>
<h4 id="&#x603B;&#x7ED3;&#x4E00;&#x4E0B;&#x770B;&#x8FD9;&#x4E2A;&#x89C6;&#x9891;&#x4E86;&#x89E3;&#x5230;&#x7684;&#x5185;&#x5BB9;">&#x603B;&#x7ED3;&#x4E00;&#x4E0B;&#x770B;&#x8FD9;&#x4E2A;&#x89C6;&#x9891;&#x4E86;&#x89E3;&#x5230;&#x7684;&#x5185;&#x5BB9;</h4>
<ul>
<li><p>Java&#x5B57;&#x8282;&#x7801;&#x7684;magic number  Cofe Babe</p>
</li>
<li><p>idea&#x7684;&#x8868;&#x8FBE;&#x5F0F;&#x8BA1;&#x7B97;Evaluate Expression</p>
</li>
<li><p>&#x5B66;&#x4E60;&#x4F7F;&#x7528;&#x53CD;&#x7F16;&#x8BD1;&#x5DE5;&#x5177;javap -v &#x3001;classpy</p>
</li>
<li><p>ASM Bytecode Viewer&#x63D2;&#x4EF6;&#x67E5;&#x770B;&#x5B57;&#x8282;&#x7801;</p>
</li>
<li><p>&#x8BDD;&#x8BF4;&#x6211;&#x624D;&#x521A;&#x77E5;&#x9053;idea&#x4E2D;&#x5FEB;&#x6377;&#x952E;CTRL+Alt+B&#x53EF;&#x4EE5;&#x4ECE;&#x63A5;&#x53E3;&#x8DF3;&#x8F6C;&#x5230;&#x5B9E;&#x73B0;&#x7C7B;&#x1F602;&#x7136;&#x540E;Ctrl+U&#x662F;&#x5B9E;&#x73B0;&#x7C7B;&#x5230;&#x63A5;&#x53E3;&#x1F923;</p>
</li>
<li><p>GitHub&#x4E2D;&#x7684;issue&#x4EE5;&#x53CA;pull request</p>
</li>
</ul>
<h2 id="&#x5206;&#x6790;oom&#x95EE;&#x9898;">&#x5206;&#x6790;OOM&#x95EE;&#x9898;</h2>
<p>OOM&#x4EE3;&#x7801;</p>
<pre><code class="lang-Java"><span class="hljs-keyword">public</span> <span class="hljs-class"><span class="hljs-keyword">class</span> <span class="hljs-title">OOM</span> </span>{

    <span class="hljs-keyword">static</span> <span class="hljs-class"><span class="hljs-keyword">class</span> <span class="hljs-title">OOM</span></span>{

    }

    <span class="hljs-function"><span class="hljs-keyword">public</span> <span class="hljs-keyword">static</span> <span class="hljs-keyword">void</span> <span class="hljs-title">main</span><span class="hljs-params">(String[] args)</span> </span>{
        List&lt;OOMObject&gt; list = <span class="hljs-keyword">new</span> ArrayList&lt;&gt;();

        <span class="hljs-keyword">while</span> (<span class="hljs-keyword">true</span>){
            list.add(<span class="hljs-keyword">new</span> OOM());
        }
    }
}
</code></pre>
<p>&#x7F16;&#x8BD1;&#x8FD0;&#x884C;</p>
<pre><code class="lang-bash">jps <span class="hljs-comment">#&#x83B7;&#x53D6;Java&#x8FDB;&#x7A0B;&#x53F7;</span>
20440 OOM
jmap -dump:live,format=b,file=D:\code\java\20440.hprof 20440 <span class="hljs-comment">#&#x83B7;&#x53D6;&#x5FEB;&#x7167;</span>
Dumping heap to D:\code\java\20440.hprof ...
Heap dump file created
</code></pre>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="一些其他人写的博客.html" class="navigation navigation-prev " aria-label="Previous page: 一些其他人写的博客">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="遇到的问题.html" class="navigation navigation-next " aria-label="Next page: 遇到的问题">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"硬核空间","level":"1.8.15","depth":2,"next":{"title":"遇到的问题","level":"1.8.16","depth":2,"path":"学习java/遇到的问题.md","ref":"学习java/遇到的问题.md","articles":[]},"previous":{"title":"一些其他人写的博客","level":"1.8.14","depth":2,"path":"学习java/一些其他人写的博客.md","ref":"学习java/一些其他人写的博客.md","articles":[]},"dir":"ltr"},"config":{"plugins":["-search","-lunr","-sharing","-anchor-navigation-ex","todo","code","-katex","github","-summary","search-pro","chapter-fold","theme-comscore","toggle-chapters","flexible-alerts"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"chapter-fold":{},"github":{"url":"https://github.com/BluePrintYang"},"todo":{},"search-pro":{},"code":{"copyButtons":true},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"anchor-navigation-ex":{"showLevel":false,"showGoTop":true,"isRewritePageTitle":true,"isShowTocTitleIcon":true,"tocLevel1Icon":"fa fa-hand-o-right","tocLevel2Icon":"fa fa-hand-o-right","tocLevel3Icon":"fa fa-hand-o-right"},"theme-comscore":{},"flexible-alerts":{"danger":{"className":"danger","icon":"fa fa-ban","label":"Attention"},"note":{"className":"info","icon":"fa fa-info-circle","label":"Note"},"style":"callout","tip":{"className":"tip","icon":"fa fa-lightbulb-o","label":"Tip"},"warning":{"className":"warning","icon":"fa fa-exclamation-triangle","label":"Warning"}},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"toggle-chapters":{}},"theme":"default","author":"yanglonglong","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"My Study Note","language":"zh-hans","links":{"sidebar":{"My Blog":"https://www.yangllong.top/"}},"gitbook":"*"},"file":{"path":"学习java/硬核空间.md","mtime":"2020-06-29T16:04:36.000Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2021-01-14T07:15:50.272Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-code/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-github/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search-pro/jquery.mark.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search-pro/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-chapter-fold/chapter-fold.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-toggle-chapters/toggle.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-flexible-alerts/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-theme-comscore/test.js"></script>
        
    

    </body>
</html>

